<?php

namespace Portal\ContraCulturaBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class IndexController extends Controller
{
	public function indexAction()
	{
		if($this->getUser()){
			return $this->render('PortalContraCulturaBundle:Index:index.html.twig');			
		}
		else{
			return $this->render('PortalContraCulturaBundle:Login:login.html.twig',array('error' => '', 'last_username' => ''));
		}
	}
}
